<pre class="docs-method-signature"><code>link.vertex(index)</code></pre>
<p>Return the vertex at <code>index</code>.</p>

<pre class="docs-method-signature"><code>link.vertex(index, vertex [, opt])</code></pre>
<p>Update the vertex at <code>index</code> with value of <code>vertex</code>. By default the new value is merged into the old value. Pass the <code>{ rewrite: true }</code> option along to disregard the old value.</p>

<p>A vertex has only two properties, <code>x</code> and <code>y</code>. It may be defined as a g.Point object.</p>

<p>Example vertex:

<pre><code>link.vertex(0, {
    x: 100,
    y: 200
});</code></pre>

<p>Note that all vertices are stored in an array on the link model under the attribute <code>vertices</code>. Use the <code>link.vertices</code> <a href="#dia.Link.prototype.vertices">function</a> to access the array.</p>
